package org.jeecg.modules.wmhb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.wmhb.entity.WmTaskTraceIssue;
import org.jeecg.modules.wmhb.mapper.WmTaskTraceIssueMapper;
import org.jeecg.modules.wmhb.service.IWmTaskTraceIssueService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 任务持续跟踪事项
 * @Author: jeecg-boot
 * @Date:   2024-09-09
 * @Version: V1.0
 */
@Service
public class WmTaskTraceIssueServiceImpl extends ServiceImpl<WmTaskTraceIssueMapper, WmTaskTraceIssue> implements IWmTaskTraceIssueService {
    @Override
    public WmTaskTraceIssue queryByWmTaskId(String wmTaskId){
        LambdaQueryWrapper<WmTaskTraceIssue> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(WmTaskTraceIssue::getWmTaskId, wmTaskId).last("LIMIT 1");
        WmTaskTraceIssue wmTaskTraceIssue = getOne(queryWrapper);
        return wmTaskTraceIssue;
    };
}
